/**
 * 
 */
package org.paybiz.model;

import java.io.Serializable;

import org.paybiz.constant.PayConstant;

/**
 * @Title: PayResultDO.java
 * @Description:支付结果通用对象
 * @author Nassir.wen
 * @date 2010-10-13 下午05:50:04
 * @version V1.0
 * @Company: MSD.
 * @Copyright Copyright (c) 2010
 */
public class PayResultDO implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -2031720693238419285L;
	private String orderId = ""; // 商品订单号
	private String paySerialId = ""; // 支付流水号
	private String productName=""; //商品或服务的名称
	private Integer payMoney = 0; // 支付金额
	private String payType = PayConstant.ALIPAY;// 支付方式：1为易宝支付，2为支付宝支付，3为财付通支付，4为快钱支付
	private Integer result = 1; // 支付结果  默认0为成功 1为失败
	private String errMsg = ""; // 错误信息
	private String resultUrl = "";//支付成功最后跳转连接
	private Integer userId=0;
	private String hmac = ""; // 签名数据

	public PayResultDO() {
		super();
	}


	public String getOrderId() {
		return orderId;
	}

	/**
	 * 设置订单ID
	 * @param orderId
	 */
	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public Integer getPayMoney() {
		return payMoney;
	}

	/**
	 * 获取支付流水号
	 * @return
	 */
	public String getPaySerialId() {
		return paySerialId;
	}

	/**
	 * 设置支付流水号
	 * @param payId
	 */
	public void setPaySerialId(String paySerialId) {
		this.paySerialId = paySerialId;
	}

	public void setPayMoney(Integer payMoney) {
		this.payMoney = payMoney;
	}

	public String getPayType() {
		return payType;
	}


	public void setPayType(String payType) {
		this.payType = payType;
	}


	public Integer getResult() {
		return result;
	}

	public void setResult(Integer result) {
		this.result = result;
	}

	public String getErrMsg() {
		return errMsg;
	}

	/**
	 * 设置出错信息
	 * @param errMsg
	 */
	public void setErrMsg(String errMsg) {
		this.errMsg = errMsg;
	}

	public String getHmac() {
		return hmac;
	}

	/**
	 * 签名数据
	 * @param hmac
	 */
	public void setHmac(String hmac) {
		this.hmac = hmac;
	}
	public String getProductName() {
		return productName;
	}
	public void setProductName(String productName) {
		this.productName = productName;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

    public String getResultUrl() {
        return resultUrl;
    }

    public void setResultUrl(String resultUrl) {
        this.resultUrl = resultUrl;
    }

    @Override
    public String toString() {
        return "PayResultDO [orderId=" + orderId + ", paySerialId=" + paySerialId + ", productName=" + productName
                + ", payMoney=" + payMoney + ", payType=" + payType + ", result=" + result + ", errMsg=" + errMsg
                + ", resultUrl=" + resultUrl + ", userId=" + userId + ", hmac=" + hmac + "]";
    }

	
}
